<template>
  <view class="self-area">
    <Dynamic
      v-for="(item, index) in list"
      :key="index"
      :imgList="item.imgList"
      :redioList="item.redioList"
      :commentList="item.commentList"
      :avatar="item.avatar"
      :name="item.name"
      :publishTime="item.publishTime"
      :content="item.content"
      :isLike="item.isLike"
      :isGiveReward="item.isGiveReward"
      :likeNumber="item.likeNumber"
      :giveRewardNumber="item.giveRewardNumber"
      :chatNumber="item.chatNumber"
      @clickDynamic="clickDynamic(index)"
      @clickUser="clickUser(item.id)"
      @clickFocus="clickFocus(index)"
      @clickThumbsup="clickThumbsup(item.id)"
      @clickGiveReward="clickGiveReward(item.id)"
      @clickChat="clickChat(item.id)"
    ></Dynamic>
  </view>
</template>

<script>
import Dynamic from '@/components/qizai-dynamic/Dynamic'
import headImg from '@/static/head.jpg'
export default {
  components: {
    Dynamic
  },
  data() {
    return {
      list: [
        {
          id: 1,
          avatar: headImg,
          name: '小新',
          publishTime: '2025-5-22',
          content: '慈母手中线，游子身上衣。临行密密缝，意恐迟迟归。谁言寸草心，报得三春晖。',
          imgList: [
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg',
            'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2369680151,826506100&fm=26&gp=0.jpg'
          ],
          redioList: [
            {
              name: '游子吟',
              url: ''
            }
          ],
          commentList: [
            {
              avatar: '李雷',
              msg: '读的真好'
            },
            {
              avatar: '吴彤',
              msg: '声音好听'
            }
          ],
          isLike: true,
          isGiveReward: true,
          likeNumber: 2,
          giveRewardNumber: 2,
          chatNumber: 2,
          isFocusOn: true
        },

        {
          id: 2,
          avatar: headImg,
          name: '小新',
          publishTime: '2025-5-22',
          content: '荷叶罗裙一色裁，芙蓉向脸两边开。乱入池中看不见，闻歌始觉有人来。',
          imgList: [
            'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2369680151,826506100&fm=26&gp=0.jpg'
          ],
          redioList: [
            {
              name: '采莲曲',
              url: ''
            }
          ],
          commentList: [
            {
              avatar: '李雷',
              msg: '读的真好'
            },
            {
              avatar: '吴彤',
              msg: '声音好听'
            }
          ],
          isLike: false,
          isGiveReward: false,
          likeNumber: 0,
          giveRewardNumber: 0,
          chatNumber: 2,
          isFocusOn: false
        },
        {
          id: 3,
          avatar: headImg,
          name: '小新',
          publishTime: '2025-5-22',
          content: '我说 你是人间的四月天；笑响点亮了四面风；轻灵在春的光艳中交舞着变。 ',
          imgList: [
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg',
            'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2369680151,826506100&fm=26&gp=0.jpg',
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg',
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg',
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg'
          ],
          redioList: [
            {
              name: '你是人间的四月天',
              url: ''
            }
          ],
          commentList: [
            {
              avatar: '李雷',
              msg: '读的真好'
            },
            {
              avatar: '吴彤',
              msg: '声音好听'
            }
          ],
          isLike: true,
          isGiveReward: false,
          likeNumber: 4,
          giveRewardNumber: 22,
          chatNumber: 52
        },
        {
          id: 5,
          avatar: headImg,
          name: '小新',
          publishTime: '2025-5-22',
          content: '泉眼无声惜细流，树阴照水爱晴柔。小荷才露尖尖角，早有蜻蜓立上头。',
          imgList: [
            'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2369680151,826506100&fm=26&gp=0.jpg',
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg',
            'https://dss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2369680151,826506100&fm=26&gp=0.jpg',
            'https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1976832114,2993359804&fm=26&gp=0.jpg'
          ],
          redioList: [
            {
              name: '小池',
              url: ''
            }
          ],
          commentList: [
            {
              avatar: '李雷',
              msg: '读的真好'
            },
            {
              avatar: '吴彤',
              msg: '声音好听'
            }
          ],
          isLike: true,
          isGiveReward: true,
          likeNumber: 3,
          giveRewardNumber: 2,
          chatNumber: 2
        }
      ]
    }
  },
  onLoad() {},
  methods: {}
}
</script>

<style lang="less" scoped>
.self-area {
  padding: 20rpx;
}
</style>
